package IC.SEMANTIC;

public class SemanticError  extends Exception {

	private int line;
	private String message;
	
	public SemanticError(int errorLine,String errorMessage) {
		line = errorLine;
		message = errorMessage;
	}

	
	public int getErrorLine() {
		return line;
	}
	
	public String getMessage() {
		return message;
	}
	
	public String toString() {
		return ("semantic error at line "+ getErrorLine() + ": "+ getMessage());
	}
	
	
	
}
